package com.github.edu.repair.manager.domain;

import com.github.admin.edu.orm.repository.CustomRepository;
import com.github.edu.repair.manager.entity.TBxFwfl;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * user:wangj
 * date:2018/8/20
 * Time: 20:59
 */
public interface FwflServerDomain extends CustomRepository<TBxFwfl,Integer> {

    @Query("select t from TBxFwfl t where t.sfqy = 1 and t.fwdl =:fwdl")
    List<TBxFwfl> getAllByFwdl(@Param("fwdl") Integer fwdl);

}
